package com.mixsmart.commonweb.bean.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.mixsmart.commonweb.bean.IPKStringBean;

@Entity
@Table(name="t_c_role_org")
public class TCRoleOrg implements IPKStringBean {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6905305706167743305L;

	private String id;
	
	private String roleId;
	
	private String orgId;
	
	private String flag;

	public TCRoleOrg() {

	}

	public TCRoleOrg(String roleId, String orgId, String flag) {
		this.roleId = roleId;
		this.orgId = orgId;
		this.flag = flag;
	}

	public TCRoleOrg(String id, String roleId, String orgId, String flag) {
		this.id = id;
		this.roleId = roleId;
		this.orgId = orgId;
		this.flag = flag;
	}

	@Id
	@Column(name="id", length=50)
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name="role_id", length=50, nullable=false)
	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	@Column(name="org_id", length=50, nullable=false)
	public String getOrgId() {
		return orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}

	@Column(name="flag", length=50)
	public String getFlag() {
		return flag;
	}

	public void setFlag(String flag) {
		this.flag = flag;
	}

}
